package cn.hk.recharge.service;

import cn.HK.po.User;
import cn.HK.vo.SystemResult;
import cn.hk.recharge.mapper.RechargeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class RechargeService {
    @Autowired(required = false)
    private RechargeMapper rechargeMapper;

    public void updatePoint(Integer uId) {
        rechargeMapper.updateVipByUserId(uId);
    }

   /* @Autowired(required = false)
    private RechargeMapper rechargeMapper;

    public static Map<String, Object> recharge() {
        return null;
    }

    public Map<String, Object> updaterecharge() {
        return null;
    }

    public void updatePoint(Double money, Integer uId) {
        //更新积分逻辑实现

        int point=money.intValue()*5;

        rechargeMapper.updatePointsByUserId(point,uId);


    }*/
}
